<?
  ob_start();
  header('content-type: text/html; charset=utf-8');
  profile_point('- page start');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>  
  <head>    
    <base href="<?= $config['site.base'] ?>">    
    <meta http-equiv="content-type" content="text/html; charset=utf-8">    
    <link type="text/css" rel="stylesheet" href="themes/default/default.css"/> 
    <link rel="icon" type="image/png" href="favicon.png"/>
    <title>
      <?= $doctitle ?>
    </title>	
    <?= implode(' ', $config['pageheaders']) ?>  
  </head>  
  <body>  
    <div id="header"><div id="menu"> 
      <div id="accountmenu">
<?  foreach ($config['accountmenu'] as $item) { ?>        
        <a href="<?= $item['url'] ?>">
          <?= $item['caption'] ?></a>      
        <? } ?>
      </div>	  
      <div id="topmenu">
<? foreach ($config['menu'] as $item) { ?>        
        <a href="<?= $item['url'] ?>">
          <?= $item['caption'] ?></a>      
<? }  ?>
      </div>
      </div>      
    <h1>        
        <?= getDefault($config['pagetitle'], $config['site.name']) ?>      </h1>  
    </div>   
    <div id="content"><div>        
      <?= $content ?>        
      <? profile_point('- content'); ?>      
    </div></div>      
    <div id="sidebar">          <h3>Subscribe</h3>          
      <a href="http://fusion.google.com/add?feedurl=http://creativepark.net/feed">            
        <img src="http://buttons.googlesyndication.com/fusion/add.gif"></a>          
      <a href="http://www.bloglines.com/sub/http://creativepark.net/feed">            
        <img src="http://www.bloglines.com/images/sub_modern5.gif"></a>          
      <a href="http://add.my.yahoo.com/rss?url=http://creativepark.net/feed">            
        <img src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif"></a>          
      <a href="http://www.pageflakes.com/subscribe.aspx?url=http://creativepark.net/feed">            
        <img src="http://www.pageflakes.com/subscribe2.gif"></a>
      <br/>          
      <a href="http://creativepark.net/feed">RSS/XML feed</a>          
      <h3>Donate</h3>            I don't do advertising on this site. To support Udo's Techblog,             please consider a secure donation with PayPal:
      <br/>            
      <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">            
        <input type="hidden" name="cmd" value="_xclick">            
        <input type="hidden" name="business" value="udo.schroeter@gmail.com">            
        <input type="hidden" name="item_name" value="Donation to Udo's Techblog">            
        <input type="hidden" name="currency_code" value="USD">            
        <input type="image" src="http://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" align="absmiddle" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">            
        <input type="text" size="3" name="amount" value="3" style="text-align: center; width: 30px"> $ via PayPal             
      </form>          
      <?= $sidebar ?>          
      <? #AGController::invokeGadget('wp_categories', 'pagedir', $config['sidebaritems']) ?>          
      <? AGController::invokeGadget('wp_categories', 'display') ?>          
<?
          profile_point('- sidebar');
                ?>             
    </div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("<?= $config['site.googleanalytics.id'] ?>");
pageTracker._initData();
pageTracker._trackPageview();
</script>  
  </body>
</html>
<?
 
  print(ob_get_clean());
?>